package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author bueryouth
 * @update 2021/8/6/00616:57
 */
@TableName("books")
@Data
public class BookEntity {
    @TableId(type = IdType.AUTO)
    private Integer bookId;
    private String bookName;
    private String author;
    private Integer price;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date publish;
    private String cover;
}
